notebook: add a style class when the child tab is reorderable
authorWilliam Jon McCann <william.jon.mccann@gmail.com>
Fri, 24 Jan 2014 21:29:31 +0000 (16:29 -0500)
committerWilliam Jon McCann <william.jon.mccann@gmail.com>
Fri, 24 Jan 2014 22:27:27 +0000 (17:27 -0500)
gtk/gtknotebook.c

index 0b0791de866b6c8bfe1ba9d2db6a2e9da62b6ba8..b610b6cc824c1288c8aaee133e9595c6f6d895ba 100644 (file)
@@ -2016,6 +2016,9 @@ notebook_tab_prepare_style_context (GtkNotebook *notebook,
 
   gtk_style_context_add_region (context, GTK_STYLE_REGION_TAB, flags);
 
+  if (page->reorderable)
+    gtk_style_context_add_class (context, "reorderable-page");
+
   switch (tab_pos)
     {
     case GTK_POS_TOP: